async function decompressGzip(gzipData) {
    const stream = new Blob([gzipData]).stream().pipeThrough(new DecompressionStream('gzip'));
    const response = new Response(stream);
    return await response.text();
}
// 1. Base64 解码
function base64ToUint8Array(base64) {
    const binaryString = atob(base64);
    return new Uint8Array([...binaryString].map(c => c.charCodeAt(0)));
}

export async function handleResData(resData) {
    const data= await decompressGzip(base64ToUint8Array(resData));
    return JSON.parse(data)
}